package com.hsq.ndmall.wx.controller;

import cn.hutool.core.map.MapUtil;
import com.hsq.ndmall.common.utils.R;
import com.hsq.ndmall.wx.feign.mms.MmsFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 黄四清
 * @version 1.0.0
 * @ClassName IssueController.java
 * @Description TODO 帮助中心列表
 * @createTime 2021年08月25日 16:08:00
 */
@RestController
@RequestMapping("wx/issue")
public class IssueController {

    @Autowired
    MmsFeign mmsFeign;

    @GetMapping("list")
    public R issueList() {
        R list = mmsFeign.issueList(MapUtil.newHashMap());
        return R.ok().put("data",list.get("page"));
    }
}
